# Makefile for srun_cr

AUTOMAKE_OPTIONS = foreign
CLEANFILES = core.*

if WITH_BLCR

AM_CPPFLAGS = -I$(top_srcdir) $(BLCR_CPPFLAGS)

bin_PROGRAMS = srun_cr

srun_cr_SOURCES = srun_cr.c

convenience_libs = $(LIB_SLURM) $(DL_LIBS)
srun_cr_DEPENDENCIES = $(LIB_SLURM_BUILD)

srun_cr_LDADD = $(convenience_libs) $(BLCR_LIBS)

srun_cr_LDFLAGS = -export-dynamic $(CMD_LDFLAGS) $(BLCR_LDFLAGS)

force:
$(convenience_libs) : force
	@cd `dirname $@` && $(MAKE) `basename $@`

else

EXTRA_srun_cr_SOURCES = srun_cr.c

endif
